package com.ruoyi.tcsp.utils;

import com.ruoyi.common.utils.uuid.UUID;

import java.security.SecureRandom;
import java.util.Date;

public class Utils {
    public static String getPublicNum() {
        SecureRandom random = new SecureRandom();
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < 8; i++) {
            int digit = random.nextInt(10);
            sb.append(digit);
        }
        String randomNumber = sb.toString();
        String gkh = "TCSP-GKH-" + sb;
        return gkh;
    }
}
